% TEST_ID: LANG-EXPAND-0026
% CATEGORY: language/array-ops/ops
% 测试 + 运算符

function test_plus
    A = [1, 2; 3, 4];
    B = [5, 6; 7, 8];
    C = A + B;
    assert(isequal(C, [6 8; 10 12]));

    A = [1, 2; 3, 4];
    B = [5  6];
    C = A + B;
    assert(isequal(C, [6 8; 8 10]));

    A = [1, 2; 3, 4];
    B = [5];
    C = A + B;
    assert(isequal(C, [6 7; 8 9]));


    A = "abc";
    B = 'ed';
    C = A + B;
    assert(isequal(C, "abcde"));
end


